-- GENERATED SPELL FOR [Skeletal Sorcerer] --


function spell0_1784(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11969,pUnit)
pUnit:RegisterEvent('Sorts_1784', 2000, 1)
end

function spell1_1784(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1784', 7000, 1)
end

function Sorts_1784(pUnit, Event)
local choix_sorts_1784 = math.random(0, 1)
if choix_sorts_1784 == 0 then
pUnit:RegisterEvent('spell0_1784', 1, 1)
end
if choix_sorts_1784 == 1 then
pUnit:RegisterEvent('spell1_1784', 1, 1)
end
end

function mob1784_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1784', math.random(1500, 3000), 1)
end

function mob1784_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1784_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1784_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1784, 1, 'mob1784_Action')
RegisterUnitEvent(1784, 2, 'mob1784_Leave')
RegisterUnitEvent(1784, 3, 'mob1784_Kill')
RegisterUnitEvent(1784, 4, 'mob1784_Die')
